<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserRolesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('user_roles',function(Blueprint $table){
            $table->increments('id');                                //关系标识
            $table->unsignedInteger('userinfo_id')->nullable();      //用户信息标识
            $table->unsignedInteger('role_id')->nullable();          //角色标识
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
        Schema::drop('user_rolesphp ');
	}

}
